package com.dabao.util.web;

import com.alibaba.fastjson.JSON;

/**
 * Created by kakalee on 16/4/13.
 */
public class Result {

    private boolean flag;

    private String msg;

    private Object data;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
